#ifndef AFAI_H
#define AFAI_H

//node stores a position and a next pointer, used in a list of nodes
typedef struct Node
{
  int X;
  int Y;
  struct Node* next;
}Node;

//path that is made up of a list of nodes, contains path length
typedef struct motionPath
{
  int numNodes;
  struct Node* myNode;
  struct Node* head;
}motionPath;

void initPath(motionPath* path, int x, int y);
void addNode(motionPath* path, int x, int y);
int moveEnemy(Sprite* enemy, motionPath* path1);

#endif